<template>
  <div class="hello">
    <h1>{{ title }}</h1>
    <ol>
        <li v-for="(item,i) in pageList" :key="i" @click="gotoPage(item.page)">
           {{item.title }} - {{ item.path }}  <i class="iconfont">&#xe61c;</i>
        </li>
    </ol>    
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  data () {
    return {
      title: '企业版 - h5页面列表',
      pageList:[
        {
          'title':'首页',       
          'page':'',
          'path':'localhost:8080/#'
        },
        {
          'title':'案例',   
          'page':'case',
          'path':'localhost:8080/#/case'
        },
      ]
    }
  },
  methods: {
    gotoPage(page){
       this.$router.push({path:'/'+page })
    }
  },
  created() {
    
  },
  mounted() {
    
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang='scss'>
h1{
  font-size: 36px;
  line-height: 80px;
  text-align: center;
}
ol{
  margin:30px 30px 30px;  
  li{
    list-style-type: decimal; 
    line-height: 60px; 
    border-bottom: 1px dotted #ccc;
    list-style-position: inside;  
    cursor: pointer;    
  }
}

</style>
